package com.klxedu.ms.gateway.security.filter;

import org.springframework.security.core.session.SessionRegistry;
import org.springframework.security.web.session.ConcurrentSessionFilter;

import com.klxedu.ms.gateway.security.session.CustomSessionInformationExpiredStrategy;

public class CustomConcurrentSessionFilter extends ConcurrentSessionFilter{
	
	public CustomConcurrentSessionFilter(SessionRegistry sessionRegistry) {
		super(sessionRegistry);
	}

	public CustomConcurrentSessionFilter(SessionRegistry sessionRegistry,
			CustomSessionInformationExpiredStrategy customSessionInformationExpiredStrategy) {
		super(sessionRegistry,customSessionInformationExpiredStrategy);
	}

//	@Override
//	protected String determineExpiredUrl(HttpServletRequest request,
//			SessionInformation info) {
//		String expiredUrlString = (String) ConfigHolder
//				.getConfigValue(ComponentPlugin.PLUGIN_CODE,
//						"plugins_session_sessionExpiredUrl");
//		Assert.notNull(expiredUrlString, "expiredUrlString is "+expiredUrlString);
//		if (!StringUtils.isEmpty(expiredUrlString)) {
//			return expiredUrlString;
//		}
//		return super.determineExpiredUrl(request, info);
//	}

}
